<?php if (count($cachePost)) { ?>
    <?php foreach($cachePost as $data) { ?>
        <?php $imagePost = !empty($data->image) ? Helper::renderImage($data->image, 'uploads/resize/Post', ',', true, true) : '/uploads/no_image.gif' ?>
        <?php $timeAgo = Helper::changeDateToFormat($data->create_date, 'm-d-Y'); ?>
        <div class="post-big">
            <div class="nav-bar clearfix">
                <h4><a href="<?php echo Helper::url('/Blog/post/view', array('lang' => $lang, 'postAlias' => $data->alias)); ?>" title="<?php echo $data->title; ?>"><?php echo $data->title; ?></a></h4>
                <hr />
            </div>
            <a href="<?php echo Helper::url('/Blog/post/view', array('lang' => $lang, 'postAlias' => $data->alias)); ?>" title="<?php echo $data->title; ?>"><img class="body" src="<?php echo $imagePost ?>" alt="<?php echo $data->title; ?>" /></a>
            <p><?php echo $data->info; ?></p>
            <div class="row-fluid links">
                <div class="span8">
                    <p><a href="<?php echo Helper::url('/Blog/post/index', array('lang' => $lang, 'username' => $data->owner->username)); ?>" title="Posted by Admin">Posted by <?php echo ucfirst($data->owner->username); ?></a> /
                        <a href="<?php echo Helper::url('/Blog/post/index', array('lang' => $lang, 'date' => $data->create_date)); ?>" title="<?php echo Helper::getTimeAgo($timeAgo); ?>"><?php echo Helper::getTimeAgo($timeAgo); ?></a> /
                        <a href="<?php echo Helper::url('/Blog/post/view', array('lang' => $lang, 'postAlias' => $data->alias)); ?>#comments" title="<?php echo $data->countComment; ?> Comments"><?php echo $data->countComment; ?> Comments</a></p>
                </div>
                <div class="span4">
                    <p class="read-more"><a href="<?php echo Helper::url('/Blog/post/view', array('lang' => $lang, 'postAlias' => $data->alias)); ?>" title="<?php echo Helper::t('Read_More_key'); ?> &gt;&gt;"><?php echo Helper::t('Read_More_key'); ?> &gt;&gt;</a></p>
                </div>
            </div>
        </div>
    <?php } ?>
        <?php echo $pg->firstLink("&lt;&lt; "); ?>
        <?php echo $pg->preLink(" &lt; "); ?>
        <?php echo $pg->pageLinks(); ?>
        <?php echo $pg->nextLink(" &gt; "); ?>
        <?php echo $pg->lastLink(" &gt;&gt;"); ?>
    <?php } else { ?>
    <p><?php echo Helper::t('No_Results_key'); ?></p>
    <?php }